package org.jeecg.modules.product.riskUnit.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.product.riskUnit.entity.TbBaseRiskUnit;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 重大危险源装置
 * @Author: jeecg-boot
 * @Date:   2024-04-16
 * @Version: V1.0
 */
@Data
@Schema(description="重大危险源装置")
public class TbBaseRiskDevicePage {

	/**id*/
	@Schema(description = "id")
    private String id;
	/**创建人*/
	@Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
	@Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@Schema(description = "所属部门")
    private String sysOrgCode;
	/**企业编码*/
	@Excel(name = "企业编码", width = 15)
	@Schema(description = "企业编码")
    private String companyCode;
	/**风险分析对象编码*/
	@Excel(name = "风险分析对象编码", width = 15)
	@Schema(description = "风险分析对象编码")
    private String hazardCode;
	/**责任部门*/
	@Excel(name = "责任部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Schema(description = "责任部门")
    private String hazardDep;
	/**责任人*/
	@Excel(name = "责任人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Schema(description = "责任人")
    private String hazardLiablePerson;
	/**重大危险源名称*/
	@Excel(name = "重大危险源名称", width = 15)
	@Schema(description = "重大危险源名称")
    private String name;
	/**删除标志*/
	@Excel(name = "删除标志", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
	@Schema(description = "删除标志")
    private String deleted;

	@ExcelCollection(name="风险分析单元")
	@Schema(description = "风险分析单元")
	private List<TbBaseRiskUnit> tbBaseRiskUnitList;

}
